package com.cheng.im.service.message.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheng.im.service.common.resp.CommonResult;
import com.cheng.im.service.message.domain.ImMessageHistory;
import com.cheng.im.service.message.model.resp.LastMessageResp;
import com.cheng.im.service.message.model.resp.MessageListResp;

import java.util.List;

/**
* @author Cheng
* @description 针对表【im_message_history】的数据库操作Service
* @createDate 2025-01-09 08:19:12
*/
public interface ImMessageHistoryService extends IService<ImMessageHistory> {

    CommonResult<LastMessageResp> getUserLastMessage(String fromId, String toId, String appId);

    CommonResult<List<MessageListResp>> getMsgListByUserId(String ownerId, String from, String to, String appId);
}
